# -*- coding:utf-8 -*-
from pydantic import Field, BaseModel


class AuthData(BaseModel):
    username: str = Field(comment='姓名', pattern="^[a-zA-Z0-9_-]{4,20}")
    password: str = Field(comment='密码md5', min_length=32, max_length=64)
    key: str = Field(comment='验证码key')
    code: str = Field(comment='验证码')
